home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir26 / epi601_2.zip / FILES07.EXE / FIND.EPA < prev    next >
Text File  |  1994-08-22  |  13KB  |  430 lines

  1. _DOS copy user3.txt doc3.txt
  2. %
  3. _DISPLAY
  4.  
  5.            -- LESSON 4 --
  6.  
  7.           FIND/REPLACE AND
  8.       CURSOR MOVEMENT COMMANDS
  9.  
  10. ....................................
  11. _ENDDISPLAY
  12. %
  13. _DISPLAY
  14.  EPED provides ways to FIND specified words and phrases in a
  15.  document, and if you wish, to REPLACE them with another word
  16.  or phrase.  It also allows you to MOVE the cursor to a speci-
  17.  fied location in the document.
  18.  
  19.  There are also several special keystrokes which allow you to
  20.  move around the document more quickly than using only the
  21.  arrow keys.
  22. _ENDDISPLAY
  23. %
  24. _DISPLAY
  25.  The commands covered in this lesson include:
  26.  
  27.    *FIND a word or phrase.
  28.  
  29.    *FIND a word or phrase and REPLACE it with
  30.     another.
  31.  
  32.    *MOVE the cursor to a specified page, line
  33.     or column.
  34.  
  35.    *MOVE the cursor to the top or bottom of the
  36.     file, or the top or bottom of a page.
  37.  
  38.    *Several other commands for more efficient
  39.     movement of the cursor:  moving a word at a
  40.     time; moving to the beginning or end of a line;
  41.     moving a page at a time.
  42. _ENDDISPLAY
  43. %
  44. _DISPLAY
  45.  Most of these commands can be found in the <F7>-FIND menu.
  46.  
  47.  In addition to using the <F7> menu, there are certain <Ctrl>
  48.  key sequences that will allow you to accomplish the same thing.
  49.  
  50.  Both alternatives will be explained in this tutorial.
  51. _ENDDISPLAY
  52. %
  53. _DISPLAY
  54.  Let's begin by reviewing the FIND and REPLACE commands.
  55.  
  56.  The FIND command will search the document for the word or
  57.  phrase that you specify.  EPED can search for a phrase of
  58.  up to 67 characters.
  59. _ENDDISPLAY
  60. %
  61. _DISPLAY
  62.  Let's review the steps to FIND A WORD using the <F7> menu:
  63.  
  64.    *Press <F7>, select the first option, "Find", and
  65.     press <Enter>.
  66.  
  67.    *In the prompt box, type the word or phrase to search
  68.     for and press <Enter>.
  69.  
  70.    *Specify the search options.  (This will be explained
  71.     on the next screen.)
  72.  
  73.    *Press <Enter> and the cursor will move to the first
  74.     occurrence of the word.
  75.  
  76.    *Press <Ctrl-L> to find the next occurrence of the word
  77.     and so on until the end of the document is reached.
  78. _ENDDISPLAY
  79. %
  80. _DISPLAY
  81.  When using the FIND command, you can specify certain
  82.  criteria for the search.  The search options include:
  83.  
  84.    *U  treats upper and lower case letters the same
  85.  
  86.    *B  searches BACKWARD from the current cursor
  87.        position to the beginning of the file.  (If you
  88.        do not specify "B", the search proceeds forward
  89.        from the current cursor position.)
  90.  
  91.    *W  searches for WHOLE WORDS only; otherwise, it will
  92.        find patterns within words that match the word
  93.        (For example, if W is not specified, a search for
  94.        "and"  will also find "brand", "standing" etc.)
  95.  
  96.    *L  limits searches to the currently marked BLOCK
  97. _ENDDISPLAY
  98. %
  99. _DISPLAY
  100.  After typing the name of the word to search for, a
  101.  list of the search options will appear in the prompt
  102.  box.
  103.  
  104.  To specify the options, type the corresponding letter(s)
  105.  in the prompt box.  For example, to specify a search for
  106.  upper and lower case letters, and for whole words only,
  107.  you would simply type "UW" in the prompt box.  Press
  108.  <Enter> and the search will then begin.
  109. _ENDDISPLAY
  110. %
  111. _DISPLAY
  112.  The next screen will take you to a document where you can
  113.  practice the FIND command.  Before starting the search, you
  114.  will want to move the cursor to the beginning of the document.
  115.  You can do this by pressing <Ctrl>-<Page Up>.
  116.  
  117.  To review the steps again:
  118.  
  119.    *Press <F7>, select "Find" using the up and down arrow keys
  120.     and press <Enter>.
  121.  
  122.    *At the prompt box, type the word to find, and press <Enter>.
  123.  
  124.    *Type the letter(s) corresponding to the desired search
  125.     options.  Press <Enter> and the cursor will move to the
  126.     first occurrence of the word.
  127.  
  128.    *Press <Ctrl-L> to find the next occurrence of the word, and
  129.     so on until the end of the document is reached.
  130. _ENDDISPLAY
  131. %
  132. _OPENFILE DOC3.TXT
  133. [<F7>-Find, type word<Enter>, select options<Enter>; <Ctrl-L> for next]
  134. _CLEARALL
  135. %
  136. _DISPLAY
  137.  As mentioned earlier, in addition to using the pop-up menus
  138.  to invoke commands, there are certain <Ctrl> key sequences
  139.  that will perform the same commands.  For instance, the FIND
  140.  command can be invoked by pressing <F7> and selecting the
  141.  "Find" option.  The alternate way to invoke the command is to
  142.  press <Ctrl-Q F>.
  143.  
  144.  This is true for most of the menu commands.  For a complete
  145.  list of the <Ctrl> key sequences, see the Epi Info manual.
  146. _ENDDISPLAY
  147. %
  148. _DISPLAY
  149.  The steps used to find a word with <Ctrl-Q F> are similar to
  150.  those of the <F7> command:
  151.  
  152.    *Press <Ctrl-Q F>.  (Hold down the <Ctrl> key and lightly
  153.     press Q and then F - then release the <Ctrl> key.)
  154.  
  155.    *Type the word or phrase to search for when the prompt
  156.     box is displayed, and press <Enter>.
  157.  
  158.    *Specify the search options.
  159.  
  160.    *Press <Enter> and the first occurrence of the word will
  161.     be highlighted.  Press <Ctrl-L> to find the next
  162.     occurrence of the word.
  163. _ENDDISPLAY
  164. %
  165. _DISPLAY
  166.  At the next screen you will return to your document.  Search
  167.  for several words, trying both the <F7> menu and <Ctrl-Q F>.
  168.  Again, before starting the search, move the cursor to the
  169.  beginning of the document by pressing <Ctrl>-<Page Up>.
  170.  
  171.  To review the steps again:
  172.  
  173.     *Press either <F7>-Find or <Ctrl-Q F>.
  174.  
  175.     *At the prompt box, type the word to search for, and
  176.      press <Enter>.
  177.  
  178.     *Specify the search options.
  179.  
  180.     *Press <Enter> and the first occurrence of the word
  181.      will be highlighted.  Press <Ctrl-L> to find the next
  182.      occurrence of the word.
  183. _ENDDISPLAY
  184. %
  185. _OPENFILE DOC3.TXT
  186. [<F7> or <Ctrl-Q F> to Find a word, <Ctrl-L> for next word]
  187. _CLEARALL
  188. %
  189. _DISPLAY
  190.  The FIND AND REPLACE command searches for the word or phrase
  191.  you specify and replaces it with another word or phrase.
  192.  
  193.  The procedure for this command is nearly the same as for
  194.  FIND, with the additional step of typing the word that will
  195.  replace the current word.
  196. _ENDDISPLAY
  197. %
  198. _DISPLAY
  199.  There are two ways to invoke the FIND AND REPLACE command:
  200.  through the <F7> pop-up menu, or by the <Ctrl-Q A> sequence.
  201.  The procedure for using FIND AND REPLACE is:
  202.  
  203.    *Press <F7>, choose the option "Find and Replace" using the
  204.     up and down arrow keys and press <Enter>  -OR-  press
  205.     <Ctrl-Q A>.
  206.  
  207.    *At the prompt box, type the word to find and press <Enter>.
  208.     Then type the word to replace with and press <Enter>.
  209.  
  210.    *Specify the search options and press <Enter>.
  211.  
  212.    *The cursor will move to the first occurrence of the word.
  213. _ENDDISPLAY
  214. %
  215. _DISPLAY
  216.  When using the FIND AND REPLACE command, there are two
  217.  additional search options that can be specified:
  218.  
  219.    G  searches GLOBALLY; that is, the entire document is
  220.       scanned regardless of the current cursor position
  221.  
  222.    N  replaces all occurrences of the word automatically;
  223.       EPED does not ask for confirmation each time the
  224.       word is encountered  (N = no ask)
  225.  
  226.  If "N" is not specified, a prompt box will appear each time
  227.  the word is encountered.  This displays four options: "Y"
  228.  directs EPED to replace the word; "N" means do not replace
  229.  the word; "A" directs EPED to replace all occurrences of the
  230.  word; and "Q" means to quit the find and replace command.
  231. _ENDDISPLAY
  232. %
  233. _DISPLAY
  234.  Now you will go back to the document and try the FIND AND
  235.  REPLACE command.  Once again, move the cursor to the beginning
  236.  of the document before proceeding with the following steps:
  237.  
  238.    *Press <F7>, select "Find and Replace" and press <Enter>
  239.     -OR-  press <Ctrl-Q A>.
  240.  
  241.    *At the prompt box, type the word to find and press <Enter>.
  242.  
  243.    *Then type the word to replace with and press <Enter>.
  244.  
  245.    *Specify the search options and press <Enter>.
  246.  
  247.    *If you specified "No ask", all occurrences of the word will
  248.     be automatically replaced.  Otherwise, a prompt box will
  249.     ask for confirmation of the replacement.
  250.  
  251.    *Press <Ctrl-L> for the next occurrence of the word.
  252.  
  253. _ENDDISPLAY
  254. %
  255. _OPENFILE DOC3.TXT
  256. [<F7>-Find & Replace -OR- <Ctrl-Q A>, <Ctrl-L> next word]
  257. _CLEARALL
  258. %
  259. _DISPLAY
  260.  Now that you're familiar with the FIND and REPLACE commands,
  261.  let's move on to another set of commands for moving the
  262.  cursor around the document.
  263.  
  264.  Up to this point, you have used the arrow keys to move from
  265.  line to line or character to character.  This could be very
  266.  time consuming if the document is more than a full screen of
  267.  text.
  268.  
  269.  Now we'll look at several ways to move more quickly and easily
  270.  through the document.
  271. _ENDDISPLAY
  272. %
  273. _DISPLAY
  274.  First, here are several commands that will help you to move
  275.  within a line of text.  To move:
  276.  
  277.    * across a line ONE WORD AT A TIME, hold down the
  278.     <Ctrl> key and press the right and left arrow keys.
  279.  
  280.    * to the BEGINNING OF A LINE, press the <Home> key.
  281.  
  282.    * to the END OF A LINE, press the <End> key.
  283. _ENDDISPLAY
  284. %
  285. _DISPLAY
  286.  To move the cursor to:
  287.  
  288.   * the TOP OF THE SCREEN, press <Ctrl> and <Home>.
  289.  
  290.   * the BOTTOM OF THE SCREEN, press <Ctrl> and <End>.
  291.  
  292. _ENDDISPLAY
  293. %
  294. _DISPLAY
  295.  Now, you'll return to the document so you can practice
  296.  moving the cursor using the commands that were just
  297.  introduced.  Let's review the commands once again.
  298.  
  299.  To move:
  300.  
  301.    * ONE WORD AT A TIME, press <Ctrl> and the
  302.      right or left arrow keys.
  303.  
  304.    * to the BEGINNING OF A LINE, press <Home>.
  305.  
  306.    * to the END OF A LINE, press <End>.
  307.  
  308.    * to the TOP OF THE SCREEN, press <Ctrl>-<Home>.
  309.  
  310.    * to the BOTTOM OF THE SCREEN, press <Ctrl>-<End>.
  311. _ENDDISPLAY
  312. %
  313. _OPENFILE DOC3.TXT
  314. [<Home>; <End>; and <Ctrl> + arrow keys, <Home>, <End>]
  315. _CLEARALL
  316. %
  317. _DISPLAY
  318.  Here are several other cursor movement commands.  To move:
  319.  
  320.     * UP ONE SCREEN, press <Page Up>.
  321.  
  322.     * DOWN ONE SCREEN, press <Page Down>.
  323.  
  324.     * to the TOP OF THE FILE (i.e., the beginning) press
  325.       <Ctrl>-<Page Up>   -OR-   use the <F7> menu.
  326.  
  327.     * to the BOTTOM OF THE FILE (i.e., the end)
  328.       press <Ctrl>-<Page Down>   -OR-   use the <F7> menu.
  329.  
  330.  
  331.  Review these commands again, and then practice moving the
  332.  cursor at the next screen.
  333. _ENDDISPLAY
  334. %
  335. _OPENFILE DOC3.TXT
  336. [<Page Up>; <Page Down>; <Ctrl> + <Pg Up>,<Pg Dn>; or <F7> menu]
  337. _CLEARALL
  338. %
  339. _DISPLAY
  340.  The <F7> menu  -OR-  the following commands allow you to go to:
  341.  
  342.           *a specific PAGE NUMBER    --  <Ctrl-J P>
  343.  
  344.           *a specific LINE NUMBER    --  <Ctrl-J L>
  345.  
  346.           *a specific COLUMN NUMBER  --  <Ctrl-J C>
  347.  
  348. _ENDDISPLAY
  349. %
  350. _DISPLAY
  351.  To use these commands, press either the <Ctrl> key sequence,
  352.  or press <F7>, select the command using the up and down
  353.  arrow keys, and press <Enter>.
  354.  
  355.  At the prompt box, type the number of the page, line or
  356.  column and press <Enter>.  The cursor will move to the
  357.  specified location.
  358.  
  359.  The next screen will take you back to the document so that
  360.  you can practice these commands.
  361. _ENDDISPLAY
  362. %
  363. _OPENFILE DOC3.TXT
  364. [<F7> menu or <Ctrl-J P>, <Ctrl-J L>, <Ctrl-J C>]
  365. _CLEARALL
  366. %
  367. _DISPLAY
  368.  That brings you to the end of Lesson 4.  You have been
  369.  introduced to many new commands in this lesson.  Let's review
  370.  them again now:
  371.  
  372.    *To FIND a word, use <F7>-"Find" -OR- <Ctrl-Q F>.
  373.  
  374.    *To find the NEXT word press <Ctrl-L>.
  375.  
  376.    *To REPLACE a word with another, use <F7>-"Find & Replace"
  377.      -OR-  <Ctrl-Q A>.
  378. _ENDDISPLAY
  379. %
  380. _DISPLAY
  381.  The following commands move the cursor around the document.
  382.  To move:
  383.  
  384.      * across a line ONE WORD AT A TIME, press <Ctrl>
  385.        and right or left arrow key.
  386.  
  387.      * to the BEGINNING OF A LINE, press the <Home> key.
  388.  
  389.      * to the END OF A LINE, press the <End> key.
  390.  
  391.      * to the TOP OF THE SCREEN, press <Ctrl>-<Home>.
  392.  
  393.      * to the BOTTOM OF THE SCREEN, press <Ctrl>-<End>.
  394. _ENDDISPLAY
  395. %
  396. _DISPLAY
  397.  To move the cursor:
  398.  
  399.    * UP ONE SCREEN, press <Page Up>.
  400.  
  401.    * DOWN ONE SCREEN, press <Page Down>.
  402.  
  403.    * to the TOP OF THE FILE, press <Ctrl>-<Page Up>
  404.      -OR-  use the <F7> menu.
  405.  
  406.    * to the BOTTOM OF THE FILE, press
  407.      <Ctrl>-<Pg Down>  -OR-  use the <F7> menu.
  408. _ENDDISPLAY
  409. %
  410. _DISPLAY
  411.  To move the cursor to:
  412.  
  413.    * a specific PAGE NUMBER, press <Ctrl-J P>
  414.      -OR-   the <F7> menu.
  415.  
  416.    * a specific LINE NUMBER, press <Ctrl-J L>
  417.      -OR-   the <F7> menu.
  418.  
  419.    * a specific COLUMN NUMBER, press <Ctrl-J C>
  420.      -OR-   the  <F7> menu.
  421. _ENDDISPLAY
  422. %
  423. _DISPLAY
  424.  This ends lesson four.  Now you will return to the
  425.  Tutorial Menu to choose another lesson, or to exit
  426.  from the tutorial.
  427. _ENDDISPLAY
  428. %
  429. _RUN WPTM.EPA
  430.